package com.seename;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.*;

@SpringBootApplication
@RestController
public class SeeNameApplication {


    public static void main(String[] args) {
        SpringApplication.run(SeeNameApplication.class, args);
    }

    @RequestMapping("/seeAge")
    public String seeAge() throws Exception {
        return HttpUtil.seeName("http://localhost:8806/seeAge");
    }

//    @RequestMapping(value = "/seeName", method = RequestMethod.GET)
    @GetMapping("/seeName") // 此注解等价于上面个注解
    public String seeName() {
        return "姓名：小熊";
    }

}
